<template>
  <div>
    <div>商户名称：张</div>
    <el-drawer
      title="我是标题"
      :visible.sync="drawer"
      direction="ttb"
    >
      <span>我来啦!</span>
    </el-drawer>
    <el-button @click="handleClose" type="primary" style="margin-left: 16px;">点我打开</el-button>
  </div>
</template>

<script>
export default {
    data(){
        return{
            drawer:true
        }
    },
    methods:{
        handleClose(){
             this.drawer=false
        }
    }
};
</script>

<style>
</style>
